<template>
	<view class="">
		<view class="u-p-t-20 u-text-center u-font-20 cl_848484FF">{{info.create_time}}</view>
		<view class=" u-b-r-20  u-p-30">
			<view class="u-weight" style="padding-bottom: 20rpx;">{{info.name}}</view>
			<view class="">
				<view class=" u-font-28 cl_454545FF">
					<u-parse :html="info.detail"></u-parse>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				announce_id:'',
				info:''
			}
		},
		onLoad(o) {
			this.announce_id=o.announce_id
			this.announce_detail()
		},
		onShareAppMessage() {
			return {
				title: this.info.name,
				imageUrl: this.info.pic,
				path: `/subcontract/mymassage/systemMessages/detail?announce_id=${this.announce_id}`
			}
		},
		onShareTimeline() {
			return {
				title: this.info.name,
				imageUrl: this.info.pic,
				path: `/subcontract/mymassage/systemMessages/detail?announce_id=${this.announce_id}`
			}
		},
		methods: {
			async announce_detail() {
				await this.$api.announce_detail({announce_id:this.announce_id}, res => {
					if (res.data.code == 1) {
						this.info=res.data.data
					}
				})
			},
		}
	}
</script>

<style scoped>
	page {
		background: #F5F5F5FF !important;
	}
</style>
